package br.sc.senai.util;

import java.text.ParseException;

import javax.swing.text.MaskFormatter;

public class FormatarTextField {
	public static MaskFormatter Mascara(String mascara){
		MaskFormatter maskF = new MaskFormatter();
		try {
			maskF.setMask(mascara);
		} catch (ParseException e) {
			System.out.println("PaseException - FormatarTextField.Mascara()");
		}
		maskF.setPlaceholderCharacter(' ');
		return maskF;
	}
}
